{block #content}
<h3>{block #title}Editace osobních údajů{/block}</h3>
<script type="text/javascript">
	$(document).ready(function() {
	if($("select#frmlideForm-role").val() == 'admin' || $("select#frmlideForm-role").val() == 'editor')
		$('tr.password').show();
	else
		$('tr.password').hide();
	});
    $("select#frmlideForm-role").live('change',function () {
		if($("select#frmlideForm-role").val() == 'admin' || $("select#frmlideForm-role").val() == 'editor')
			$('tr.password').show();
		else
			$('tr.password').hide();
	});
</script>
{$form->render('begin')}
<table class="form">
	<tr>
		<td class="label">{$form['jmeno']->label}<em>*</em></td><td class="data">{$form['jmeno']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['prijmeni']->label}<em>*</em></td><td class="data">{$form['prijmeni']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['prezdivka']->label}<em>*</em></td><td class="data">{$form['prezdivka']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['narozen']->label}</td><td class="data">{$form['narozen']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['vaha']->label}</td><td class="data">{$form['vaha']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['vyska']->label}</td><td class="data">{$form['vyska']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['telefon']->label}</td><td class="data">{$form['telefon']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['email']->label}<em>*</em></td><td class="data">{$form['email']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['info']->label}</td><td class="data">{$form['info']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['role']->label}<em>*</em></td><td class="data">{$form['role']->control}</td>
	</tr>
	<tr class="password">
		<td class="label">{$form['heslo']->label}<em>*</em></td><td class="data">{$form['heslo']->control}</td>
	</tr>
	<tr>
		<td class="label">{$form['fotka']->label}</td><td class="data">{$form['fotka']->control}</td>
	</tr>
	<tr>
		<td class="label"><strong>Náhled:</strong</td><td class="picture"><img width="100px" src="/images/fotka_uzivatele/{$image}" /></td>
	</tr>
	<tr>
		<td></td><td>
			{$form['save']->control}
			{$form['cancel']->control}
		</td>
	</tr>
</table>

{$form->render('end')}

